package UnitTest;

import org.apache.tuscany.sca.node.SCAClient;
import org.apache.tuscany.sca.node.SCANode;
import org.apache.tuscany.sca.node.SCANodeFactory;

import com.Interlend.interfaces.User.UserRegister;

public class TestSOA {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		SCANodeFactory factory = SCANodeFactory.newInstance();
        SCANode node = factory.createSCANodeFromClassLoader("Calculator.composite", TestSOA.class.getClassLoader());
        node.start();
        
        UserRegister userRegister = ((SCAClient)node).getService(UserRegister.class, "UserRegisterComponent");
		userRegister.execute("dyf", "dyf", 1, "10301091", "10301091@163.com", 1);
		
        while(true)
		{
			
		}
	}

}
